<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:p="http://primefaces.org/ui">

<h:panelGroup layout="block" styleClass="cabecalho">
		
	<h:panelGroup id="cabecalhoTop" layout="block" styleClass="cabecalhoTop">
		
		<h:panelGroup id="cabecalhoBlogTop" layout="block" styleClass="cabecalhoBlogTop left">
		
			<h:form id="blogInicioForm">
				<h:commandLink action="#{BlogBean.blogInicio()}" styleClass="cabecalhoBlogNome">
					<h:outputText value="#{BlogBean.blog.nome}" />
				</h:commandLink>
			</h:form>
						
		</h:panelGroup>

		<h:panelGroup id="cabecalhoUserInfo" rendered="#{SessaoBean.autenticado}"
			layout="block" styleClass="cabecalhoUserInfo right">
			
			<h:form id="cabecalhoBlogForm">
			
				<h:outputText value="#{SessaoBean.usuarioAutenticado.nome} | " />				
				
				<h:commandLink id="painelControleLink"
					styleClass="cabecalhoUsuario"
					action="#{PaginaInicialBean.acessarPaineldeControle()}">
					<h:outputText value="#{locale['menuUsuario.botao.painelControle']}" />
				</h:commandLink>
			
			</h:form>
			
		</h:panelGroup>
			
		<h:panelGroup layout="block" styleClass="clear"></h:panelGroup>
		
	</h:panelGroup>
	
	<h:panelGroup id="cabecalhoBlogCenter" layout="block" styleClass="cabecalhoBlogCenter">
	
		<h:outputText value="#{BlogBean.blog.descricao}" styleClass="cabecalhoBlogDescricao" />
		
	</h:panelGroup>

	<h:panelGroup id="cabecalhoBottom" layout="block" styleClass="cabecalhoBottom">
		
		<h:graphicImage library="images/blogs" name="no-image.jpg" width="1050" height="150" />
		
	</h:panelGroup>
	
</h:panelGroup>

</ui:composition>